<!DOCTYPE html>
<html>
<head>
<!-- <meta charset="UTF-8"> -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>iterator collection</title>
</head>
<body>
	<p>AbsoluteContextPath:${basePath}
	<p>ContextPath: ${ctx}	
	<p>Path: ${ctx}

	<h3>list集合</h3>
	<s:set name="list" value="{'a','b','c','d'}"></s:set>
	<s:iterator var="ent" value="#request.list" status="statu">
		<s:if test="%{#statu.odd}">
			<font color="red"><s:property value="#ent" /> </font>
		</s:if>
		<s:else>
			<s:property value="#ent" />
		</s:else>
	</s:iterator>

	<h3>Map集合</h3>
	<s:set var="map" value="#{'1':'laowang','2':'老王','3':'猩猩'}"></s:set>
	遍历Map：
	<br />
	<s:iterator value="#map">
		<s:property value="key" />:::<s:property value="value" />
		<Br />
	</s:iterator>
</body>
</html>